package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

import static org.junit.jupiter.api.Assertions.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-01-07
 * Time: 21:46
 */
@SpringBootTest
class UserMapperTest1 {

    @Autowired
    private UserMapper user;

    @Test
    void getAll() {
        List<UserInfo> all = user.getAll();
        for(UserInfo user : all) {
            System.out.println(user.toString());
        }
    }
}